//go:build wireinject
// +build wireinject

package main

import (
	"github.com/google/wire"
	"go_user_manager/internal"
	"go_user_manager/pkg/adapters/agin"
	"go_user_manager/pkg/framework"
)

func NewGinServer(logger framework.Logger, config framework.Configuration) *agin.Server {
	wire.Build(ProvideController,
		internal.Provider,
		ProvideDatabase,
		agin.Provider)
	return &agin.Server{}
}
